#ifndef RESPONDFACTORY_H
#define RESPONDFACTORY_H
#include "codecfactory.h"
#include "respondcodec.h"

class RespondFactory : public CodecFactory
{
public:
    // 创建编码对象
    RespondFactory(QString enc);
    // 创建解码对象
    RespondFactory(RespondInfo* info);
    ~RespondFactory();

    // 工厂函数
    Codec* createCodec();

private:
    QString m_encStr;
    RespondInfo* m_info;
};

#endif // RESPONDFACTORY_H
